<template>
  <div id=" app">
    <!-- <van-config-provider theme="dark"> -->
      <router-view></router-view>
    <!-- </van-config-provider> -->
  </div>
</template>

<script setup lang="ts">
</script>

<style lang="less">

@media screen and (orientation: portrait) {
  html {
    width: 100vmin;
    height: 100vmax;
  }
  body {
    width: 100vmin;
    height: 100vmax;
  }
  .page {
    background-size: cover;
    width: 100vmax;
    height: 100vmin;
    transform-origin: top left;
    transform: rotate(90deg) translate(0, -100vmin);
  }
  :root:root {
    .van-toast{
      transform: rotate(90deg);
    }
  }
}
@media screen and (orientation: landscape) {
  html {
    width: 100vmax;
    height: 100vmin;
  }
  body {
    width: 100vmax;
    height: 100vmin;
  }
  .page {
    width: 100vmax;
    height: 100vmin;
  }
}

#app,
body,
html {
  background-size: cover;
  background-repeat: no-repeat;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
  height: 100vh; /* 为了让整个页面占满整个屏幕 */
  color-scheme: dark;
}
:root:root {
  .van-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
}
</style>
